# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-distutils-extra
_pyname=python-distutils-extra
pkgver=2.45
pkgrel=0
pkgdesc="Enhanced distutils package for python"
url="https://launchpad.net/python-distutils-extra"
arch="noarch"
license="GPL-2.0-or-later"
depends="py3-setuptools"
source="https://salsa.debian.org/python-team/modules/python-distutils-extra/-/archive/$pkgver/python-distutils-extra-$pkgver.tar.bz2"
builddir="$srcdir/$_pyname-$pkgver"

replaces="py-distutils-extra" # Backwards compatibility
provides="py-distutils-extra=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="04d2be290726d7ceed599031bfa960468c6a8654c8d9105dd77cb5744f6908d1c9a6732095692aebde1f1e042ef70b2695d41586663e4d539ee96247a39f02a1  python-distutils-extra-2.45.tar.bz2"
